﻿using System;
using CoProjectModel;
using IdeaBlade.EntityModel;

namespace CoProjectDF.Repository
{
    public interface IToDoItemRepository
    {
        INotifyCompleted FindToDoItemByID(int ID, Action<ToDoItem> onSuccess = null,
                                          Action<Exception> onFail = null);

        INotifyCompleted GetFirstItem(Action<ToDoItem> onSuccess = null,
                                      Action<Exception> onFail = null);

        INotifyCompleted Save(Action onSuccess = null, Action<Exception> onFail = null);
    }
}